/*
 * Direction.cc
 *
 *  Created on: 11 jan. 2011
 *      Author: Frans
 */

#include "Direction.h"
#include <string>

int Direction::getXDisplacement(int index){
	if(index == 0){
		return 0;
	}else if(index == 1){
		return 1;
	}else if(index == 2){
		return 0;
	}else{
		return -1;
	}
}

int Direction::getYDisplacement(int index){
	if(index == 0){
		return 1;
	}else if(index == 1){
		return 0;
	}else if(index == 2){
		return -1;
	}else{
		return 0;
	}
}

string Direction::getDirection(int direction){
	if(direction == 0){
		return "NORTH";
	}else if(direction == 1){
		return "EAST";
	}else if(direction == 2){
		return "SOUTH";
	}else{
		return "WEST";
	}
}

